package com.example.ccod.nacos.gateway.client;

import com.ccod.nacos.order.facade.OrderFacade;
import com.ccod.nacos.order.model.OrderDTO;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

/**
 * @author: ccod
 * @data: 2020/12/27 13:37
 **/
@Service
public class OrderFacadeClientImpl implements OrderFacadeClient {


    @DubboReference
    private OrderFacade orderFacade;

    @Override
    public boolean createOrder(OrderDTO dto) {
        return orderFacade.createOrder(dto);
    }

    @Override
    public OrderDTO searchOrder(String orderId) {
        return orderFacade.searchOrder(orderId);
    }

}
